package com.xuelang.pipeline.client.pipeline.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 流水线标签DTO
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TagDTO {

    /**
     * 标签UUID
     */
    private String uuid;

    /**
     * 标签名称
     */
    @NotEmpty(message = "标签名称不能为空")
    private String name;

    /**
     * 标签分类，按原型待定义，先存文本
     */
    private String type;

    /**
     * 标签颜色，BLUE/RED/ORANGE/GREEN/GRAY/PURPLE
     */
    @NotEmpty(message = "标签颜色不能为空")
    private String color;

    /**
     * 创建人
     */
    private String creatorId;

    /**
     * 创建时间
     */
    private Date createTime;

}
